package com.school.mall.sys.service.impl;

import com.school.mall.sys.entity.MallGoodsInven;
import com.school.mall.sys.entity.queryVo.MallGoodsInvenQueryVo;
import com.school.mall.sys.mapper.MallGoodsInvenMapper;
import com.school.mall.sys.service.MallGoodsInvenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.HashMap;
import java.util.Map;

@Service
public class MallGoodsInvenServiceImpl extends ServiceImpl<MallGoodsInvenMapper, MallGoodsInven> implements MallGoodsInvenService {

    @Override
    public Map<String, Object> queryColourList(Long shoeId) {
        HashMap<String, Object> objectObjectHashMap = new HashMap<>();
        objectObjectHashMap.put("colorType", baseMapper.getColourTypeQueryVo(shoeId));
        return objectObjectHashMap;
    }

    @Override
    public Map<String, Object> querySizeList(Long shoeId) {
        HashMap<String, Object> objectObjectHashMap = new HashMap<>();
        objectObjectHashMap.put("sizeType", baseMapper.getSizeTypeQueryVo(shoeId));
        return objectObjectHashMap;
    }
}
